import pdfplumber
from openpyxl import Workbook #保存表格，需要安装openpyxl
with pdfplumber.open("../表格.pdf") as pdf:
    page01 = pdf.pages[0]
    table = page01.extract_table()
    print(table)
    workbook = Workbook()
    sheet = workbook.active
    for row in table:
        sheet.append(row)
    workbook.save(filename="../表格.xlsx")